package com.lb.activity.website.service;

import com.lb.activity.po.WebArticle;
import com.lb.activity.util.ResultUtil;
import com.lb.activity.vo.ArticleVo;
import com.lb.activity.vo.PageVo;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.Map;

public interface TextService {

    String uploadFileAndReturnFilePath(MultipartHttpServletRequest multipartRequest);

    ResultUtil addText(WebArticle webArticle, String content);

    ResultUtil texts(PageVo pageVo);

    ResultUtil removeData(Long id);

    ArticleVo viewDataById(Long id);

    ResultUtil updateText(ArticleVo articleVo, String content);


    ResultUtil toLockTopText(ArticleVo articleVo);

    ResultUtil toLockHotText(ArticleVo articleVo);
}
